﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="HeritageAcademy.Library.Controls.TestBoardListItem"
	x:Name="UserControl"
	d:DesignWidth="400" d:DesignHeight="44" Height="40" Opacity="0.75">
	<UserControl.Resources>
		<Storyboard x:Key="OnMouseEnter">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="UserControl">
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="OnMouseLeave">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="UserControl">
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.75"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter">
			<BeginStoryboard x:Name="OnMouseEnter_BeginStoryboard" Storyboard="{StaticResource OnMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave">
			<BeginStoryboard x:Name="OnMouseEnter_BeginStoryboard1" Storyboard="{StaticResource OnMouseLeave}"/>
		</EventTrigger>
	</UserControl.Triggers>

	<Grid x:Name="grid">
		<Border x:Name="bdrColor" BorderThickness="1" Margin="0" Background="#FF00A000">
			<TextBlock x:Name="tbTitle" Text="Классы и объекты" VerticalAlignment="Center" Margin="6,0,0,0" TextTrimming="CharacterEllipsis" TextOptions.TextFormattingMode="Display" HorizontalAlignment="Left"/>
		</Border>
	</Grid>
</UserControl>